package com.rub.android.dao

object DataBaseDao {

    private var tagsDao: TagsDao? = null
    private var userDao: UserDao? = null
    private var githubDao: GithubDao? = null

    fun getTagsDao(): TagsDao {
        if (tagsDao == null) {
            tagsDao = TagsDao()
        }
        return tagsDao!!
    }

    fun getUserDao(): UserDao {
        if (userDao == null) {
            userDao = UserDao()
        }
        return userDao!!
    }

    fun GetGithubDao(): GithubDao {
        if (githubDao == null) {
            githubDao = GithubDao()
        }
        return githubDao!!
    }

}